class ChangeNovelFragmentNumberDefault < ActiveRecord::Migration
  def self.up
    change_column_default :novels, :fragment_number, 0
    change_column_default :fragments, :fragment_number, 0
    (Novel.find :all).each  do  |novel|
      novel.update_attribute :fragment_number, 0
    end
  end

  def self.down
  end
end
